package patterns.strategy.main;

import patterns.strategy.core.ICalculator;
import patterns.strategy.core.Minus;
import patterns.strategy.core.Multiply;
import patterns.strategy.core.Plus;

public class Test {
	public static void main(String[] args) {
		ICalculator calculator = new Plus();
		System.out.println(calculator.calculate("3+3"));
		calculator = new Minus();
		System.out.println(calculator.calculate("3-3"));
		calculator = new Multiply();
		System.out.println(calculator.calculate("3*3"));
	}
}
